package com.zhbit.action;

import com.opensymphony.xwork2.ActionSupport;
import com.zhbit.Service.ContentmangerService;

public class LockcontentAction extends ActionSupport{
	
	private ContentmangerService cs;
	private int id;
	private int type;
	public void setType(int type) {
		this.type = type;
	}
	public int getType() {
		return type;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public void setCs(ContentmangerService cs) {
		this.cs = cs;
	}
	public ContentmangerService getCs() {
		return cs;
	}


	public String execute() throws Exception {
		
		   cs.updatetype(id, type);
			return SUCCESS;
	
	}
	
}
